package stud.mpgame.flash.preview;

import stud.mpgame.network.Message;
import flash.utils.IDataOutput;
import stud.mpgame.network.UserObject;

/**
 * ...
 * @author ghfjsdkl
 */

class ReadyToGame extends UserObject
{
	private var name:String;
    private var userID:Int;
	
	public function new(name:String, userID:Int){
		super();
		this.name = name;
		this.userID = userID;
	}
	
	override public function writeExternal(output:IDataOutput, message:Message):Void {
		output.writeUTF(name);
		output.writeInt(userID);
    }
}